import 'package:flutter/material.dart';

class MyApp8 extends StatelessWidget {
  const MyApp8({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: const Text('expanded'),
              backgroundColor: Colors.black26,
              centerTitle: true,
            ),
            body: Center(
              child: Container(
                color: Colors.amber,
                height: 100,
                padding: const EdgeInsets.all(10),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                  children: [
                    Image.network(
                      'https://yanxuan-item.nosdn.127.net/afd6199278a5b8fd783bc4947960fabc.jpg',
                      width: 100,
                    ),
                    const Expanded(
                        child: Text(
                      '茶水分离杯耐热隔热玻璃杯',
                      style: TextStyle(fontSize: 33),
                    ))
                  ],
                ),
              ),
            )));
  }
}
